package top.tangyh.lamp.care.vo.result;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import top.tangyh.lamp.care.entity.BCareIsbarHandoverDetail;
import top.tangyh.lamp.care.entity.BPatient;

import java.time.LocalDateTime;
import java.util.List;

@Data
@Schema(description ="isbar交班记录明细回参类")
public class CareISBARHandoverDetailOutVO {

    private Long id;

    @Schema(description ="记录id")
    private Long recordId;

    @Schema(description ="床号")
    private String bedNumber;

    @Schema(description ="姓名")
    private String patientName;

    @Schema(description ="出生日期")
    private LocalDateTime birthday;

    @Schema(description ="S情境 患者诊断")
    private String sContext;

    @Schema(description ="B背景 手术等")
    private String bContext;

    @Schema(description ="R建议 后续处理措施及方向")
    private String rJy;

    @Schema(description ="特别提醒")
    private String specialRemind;

    @Schema(description ="识别号")
    private String patientIdent;

    @Schema(description ="住院号")
    private String hospitalNumber;

    @Schema(description ="A评估和交班明细")
    private List<CareISBARAPgOutVO> jiaoBanList;

    public String getsContext() {
        return sContext;
    }

    public void setsContext(String sContext) {
        this.sContext = sContext;
    }

    public String getbContext() {
        return bContext;
    }

    public void setbContext(String bContext) {
        this.bContext = bContext;
    }


    public String getrJy() {
        return rJy;
    }

    public void setrJy(String rJy) {
        this.rJy = rJy;
    }

    public CareISBARHandoverDetailOutVO(BCareIsbarHandoverDetail detailPO) {
        this.id = detailPO.getId();
        this.recordId = detailPO.getRecordId();
        this.bedNumber = detailPO.getBedNumber();
        this.patientName = detailPO.getPatientName();
        this.patientIdent = detailPO.getPatientIdent();
        this.hospitalNumber = detailPO.getHospitalNumber();
        this.birthday = detailPO.getBirthday();
        this.sContext = detailPO.getSContext();
        this.bContext = detailPO.getBContext();
        this.rJy = detailPO.getRJy();
        this.specialRemind = detailPO.getSpecialRemind();
    }

    public CareISBARHandoverDetailOutVO(BPatient detailPO) {
        this.bedNumber = detailPO.getBedNumber();
        this.patientName = detailPO.getPatientName();
        this.birthday = detailPO.getBirthday();
        this.hospitalNumber = detailPO.getHospitalNumber();
        this.patientIdent = detailPO.getPatientIdent();
    }

    public CareISBARHandoverDetailOutVO(PatientInfoOutVO infoOutVO) {
        this.bedNumber = infoOutVO.getBedNumber();
        this.patientName = infoOutVO.getPatientName();
        this.birthday = infoOutVO.getBirthday();
        this.hospitalNumber = infoOutVO.getHospitalNumber();
        this.patientIdent = infoOutVO.getPatientIdent();
    }

    public CareISBARHandoverDetailOutVO() {
    }
}
